package main

import "fmt"

type address struct {
	province string
	city     string
	district string
}
type persons struct {
	name   string
	age    int
	gender string
	addr   address
}

func main() {
	p1 := persons{
		name:   "张三",
		age:    21,
		gender: "male",
		addr: address{
			province: "山东",
			city:     "潍坊",
			district: "奎文",
		},
	}
	fmt.Println(p1)
	fmt.Println(p1.name, p1.addr.city)
}
